#ifndef __TEST_H__
#define __TEST_H__

#include "stm32f4xx.h"
#include "delay.h"
#include "KEY.h"
#include "LED.h"
#include "lcd.h"
#include "USART.h"
#include "I2C.h"
#include "Relay.h"
#include "StepMotor.h"
#include "DCMotor.h"
#include "HumIR.h"
#include "dth11.h"
#include "BMP180.h"
#include "LatticeData.h"
#include "Lattice.h"
#include "trafficlight.h"
#include "BH1750.h"
#include <string.h>

//函数声明
void LED_test(void);
void Relay_test(void);
void Illuminance_test(void);
void Gas_Hum_test(void);
void DHT11_test(void);
void TrafficLight_test(void);

// 使用ASCII码版本的宏定义 - 避免中文编码问题
#define STR_SMART_HOME         " <----Intelligent Home---->"
#define STR_AUTHOR_NAMES       "Wjb, Zl, Wy, Tmz"
#define STR_WAITING            " Hint: Press S4 for next module"
#define STR_S5_NEXT_MODULE     " Hint: System started, press S5 for next module"
#define STR_WELCOME_HOME       "Welcome Home!"
#define STR_WAITING_STATUS     "Hint: Waiting"
#define STR_HUMAN_DETECT_TITLE " Human Detection: Is Anyone Home?"

// 窗帘控制相关
#define STR_CURTAIN_TITLE      "Light Sensor & Stepper Motor: Smart Curtain"
#define STR_CURRENT_LUX        "Current Indoor Light Level:"
#define STR_S3_NEXT            "Hint: Press S3 for next module"
#define STR_CURTAIN_DOWN       "Curtain Lowering..."
#define STR_CURTAIN_UP         "Curtain Raising... "
#define STR_CURTAIN_STATIC     "Curtain Static...  "

// 风扇控制相关
#define STR_FAN_TITLE          "Temperature Sensor: Fan Control"
#define STR_S2_NEXT            "Hint: Press S2 for next module"
#define STR_FAN_OFF            "Fan Off!"
#define STR_FAN_ON             "Fan  On!"
#define STR_TEMPERATURE        "Temp:%d C"
#define STR_HUMIDITY           "Humidity:%d %%"
#define STR_PRESSURE           "Pressure:%.1f Kpa"
 
// 天气预报相关
#define STR_WEATHER_TITLE      "Traffic Light & Sensors: Weather Forecast"
#define STR_GREEN_SUNNY        "Green: Sunny"
#define STR_YELLOW_CLOUDY      "Yellow: Cloudy"
#define STR_RED_RAINY          "Red: Rainy"
#define STR_S1_END             "Hint: Press S1 to end"
#define STR_CLOUDY_ADVICE      "Cloudy, bring an umbrella!"
#define STR_RAINY_ADVICE       "Heavy rain, take rain gear!"
#define STR_SUNNY_ADVICE       "Sunny day, good for outdoors!"
#define STR_GOODBYE            "Have a Nice Day!"

#endif	
